<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
   <title> </title>
   <script 
        src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js">
    </script>

    <script>
        $(document).ready(function() {

// 	       $('#combox').on('select', 
// 	    		   function() {
	    	          if(document.getElementById('combox').value == "alcuni soci e consiglieri da selezionare"){
	    		         alert("ALCUNI SOCI");
	    	          }});
// 	                });
	
//         );
    </script>
</head>
<body>

<form:form method="post" action="/asvp_web/notification/save"  modelAttribute="NotificationBean" >
	
	<div>
	
	<table id="insert_notification">
	
	 <tr>  
        <td>TITOLO</td>
        <td><form:input path="notification.title" value="${notification.title}"></form:input></td> 
     </tr>  
     
     <tr>  
        <td>NOTA</td>
         <td><form:textarea path="notification.note" rows="10" cols="30" /></td>
     </tr>
     
     <tr>  
        <td>DATA INIZIO</td>
        <td><form:textarea path="notification.startDate" value="${notification.startDate}" /></td>
     </tr>
     
     <tr>  
        <td>FREQUENZA</td>
        <td><form:textarea path="notification.frequency" value="${notification.frequency}" /></td>
     </tr>
     
     <tr>  
        <td>DATA FINE</td>
        <td><form:textarea path="notification.endDate" value="${notification.endDate}" /></td>
     </tr>
     
     <tr>  
        <td>POSSIBILI DESTINATARI</td>
        <td><form:select id="combox" path="notification.receiverOption" items="${notificationOptions}" /></td>
     </tr>
     
	</table>
	
	</div>
		
	<div>
	<br/><input type="submit" value="Salva" />
	</div>
	
</form:form>
</body>
</html>
